% TEST_ID: LANG-EXPAND-0100
% CATEGORY: language/string
% 测试 string 的 广播运算
function test_string_broadcast()
    a = strings(3, 0);
    b = "hello";

    c = a + b;
    assert(class(c) == "string");
    assert(size(c) == [3, 0]);
    d = b + a;
    assert(class(d) == "string");
    assert(size(d) == [3, 0]);

    e = a > b;
    assert(class(e) == "logical");
    assert(size(e) == [3, 0]);

    f = b <= a;
    assert(class(f) == "logical");
    assert(size(f) == [3, 0]);

    g = a == b;
    assert(class(g) == "logical");
    assert(size(g) == [3, 0]);

    h = a ~= b;
    assert(class(h) == "logical");
    assert(size(h) == [3, 0]);
end